package com.alibaba.cloud.client9093.controller;


import com.alibaba.cloud.client9093.service.IndexService;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.sun.xml.internal.txw2.output.IndentingXMLFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.Iterator;
import java.util.ServiceLoader;
import java.util.concurrent.TimeUnit;

/**
 * created by wuquan at 05/08/2021
 * ^_^ ^_^
 */
@RestController
public class IndexController {

    @Autowired
    private IndexService indexService;

    @GetMapping("/save")
    public Integer save(String name) {
        return indexService.insertUser(name);
    }



}
